<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>a</title>
    <script>
        function goback(){
            // history.back();
            history.go(-1);
        }
    </script>
</head>
<body>
    <h1>history对象-a页面</h1>
    <button onclick="goback()">返回上一页</button>
</body>
</html>